LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_ARM_MODE := arm
OPTS :=
#OPTS := -O3 -ffast-math

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/include \
	$(LIBA_INCLUDE)

LOCAL_CFLAGS := $(OPTS)
LOCAL_LDFLAGS := -Wl,-Map=app.map

LOCAL_MODULE := game

LOCAL_SRC_FILES := \
           src/AchievementManager.cpp \
           src/AchievementManagerDebugImpl.cpp \
           src/CameraDefinition.cpp \
           src/Config.cpp \
           src/ControlCollection.cpp \
           src/GameApplication.cpp \
           src/GameDefinition.cpp \
           src/ResourceReferenceDefinition.cpp \
           src/Root.cpp \
           src/Screen.cpp \
           src/ScreenBackend.cpp \
           src/ScreenBackendFactory.cpp \
           src/ScreenDefinition.cpp \
           src/ScreenManager.cpp \
           src/ScreenManagerDebugImpl.cpp \
           src/ScreenReferenceDefiniton.cpp \
           src/StaticResourceScreenReference.cpp \
           src/Timer.cpp \
           src/controls/Button.cpp \
           src/controls/ButtonImpl.cpp \
           src/controls/Control.cpp \
           src/controls/ControlCollectionLoader.cpp \
           src/controls/ControlFactory.cpp \
           src/controls/ControlImplBase.cpp \
           src/controls/ControlStates.cpp \
           src/controls/MouseEventForward.cpp \
           src/controls/MoveButton.cpp \
           src/controls/Slider.cpp \
           src/controls/TagButton.cpp \
           src/flow/EntryDefinition.cpp \
           src/flow/EntryExitDefinition.cpp \
           src/flow/FlowDefinition.cpp \
           src/flow/Manager.cpp \
           src/flow/SelectorFactory.cpp \
           src/flow/TriggerEntry.cpp \
           src/flow/TriggerFactory.cpp \
           src/input/PointingDeviceInputManager.cpp \
           src/services/ApplicationService.cpp \
           src/services/DelayedActionServiceImpl.cpp \
           src/services/TextServiceImpl.cpp

include $(BUILD_STATIC_LIBRARY)
